package com.heima.comment.service;

import com.heima.model.comment.dtos.CommentRepayDto;
import com.heima.model.comment.dtos.CommentRepayLikeDto;
import com.heima.model.comment.dtos.CommentRepaySaveDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

public interface CommentRepayService {
    /**
     * 保存评论回复
     * @param dto
     * @param request
     * @return
     */
    ResponseResult save(CommentRepaySaveDto dto, HttpServletRequest request);

    /**
     * 点赞评论回复
     * @param dto
     * @return
     */
    ResponseResult like(CommentRepayLikeDto dto);

    /**
     * 分页展示回复
     * @param dto
     * @return
     */
    ResponseResult load(CommentRepayDto dto);
}
